package mediator;

// 具体同事类 - 闹钟
public class Alarm extends Device {
    public Alarm(String name, SmartHomeMediator mediator) {
        super(mediator);
        mediator.register(name, this);
    }

    public void startMorning() {
        System.out.println("起床闹钟响起");
    }

    public void stop() {
        System.out.println("关闭闹钟");
    }

}
